<?php


namespace app\lunwen\controller;


use app\lunwen\model\LeaveMessageModel;
use app\lunwen\model\TeacherUploadFileModel;
use cmf\controller\HomeBaseController;

class StudentStartWordsController extends HomeBaseController
{
    public function index(){
        $message = new LeaveMessageModel();
        $data = $message->where("student_id",session("stu_id"))
            ->whereTime('create_time','>',session('beforeYear'))
            ->whereTime('create_time','<',session('afterYear'))
            ->all();
        $this->assign('title',$data);
        return $this->fetch(':studentStartWords');
    }
}